package com.easy.mapper;

import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
public interface UserDao {

    int add(@Param("param")User user);

    int del(@Param("id") Integer id);

    int edit(@Param("param") User user);

    User one(@Param("id")Integer id);

    List<User> all(@Param("param") User user);

    int pageCount(@Param("param")User user);

    List<User> page(@Param("page")Page page,@Param("param")User user);

    User getByAccount(@Param("user_account")String account);

}
